﻿<Window x:Class="Mengsk.ProxyDelivery.App.UI.Operator.OperatorEditWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="OperatorEditWindow" Height="300" Width="300" SizeToContent="WidthAndHeight" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded">
    <Grid Margin="3">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="150"/>
        </Grid.ColumnDefinitions>

        <TextBlock Grid.Row="0" Grid.Column="0" Text="工号：" Margin="3" VerticalAlignment="Center"/>
        <TextBox Grid.Row="0" Grid.Column="1" Name="tbNumber"  Margin="3" VerticalAlignment="Center" IsReadOnly="True"/>

        <TextBlock Grid.Row="1" Grid.Column="0" Text="姓名：" Margin="3" VerticalAlignment="Center"/>
        <TextBox Grid.Row="1" Grid.Column="1" Name="tbName"  Margin="3" VerticalAlignment="Center" />

        <TextBlock Grid.Row="2" Grid.Column="0" Text="仓库：" Margin="3" VerticalAlignment="Center"/>
        <ComboBox Grid.Row="2" Grid.Column="1" Name="cbbWarehouses"  Margin="3" VerticalAlignment="Center" DisplayMemberPath="Name"/>
        <TextBlock Grid.Row="3" Grid.Column="0" Text="电话：" Margin="3" VerticalAlignment="Center"/>
        <TextBox Grid.Row="3" Grid.Column="1" Name="tbPhone"  Margin="3" VerticalAlignment="Center" />


        <TextBlock Grid.Row="4" Grid.Column="0" Text="启用：" Margin="3" VerticalAlignment="Center"/>
        <CheckBox Grid.Row="4" Grid.Column="1" Name="chkEnabled"  Margin="3" VerticalAlignment="Center" />

        <Button Grid.Row="5" Grid.Column="1" Name="btnSave" Content="保存" Margin="3" VerticalAlignment="Center" Click="btnSave_Click"/>
    </Grid>
</Window>
